String.prototype.trim = function() {
	return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
};

String.prototype.ltrim = function() {
	return value.replace(/^\s+/, "");
};

String.prototype.rtrim = function() {
	return value.replace(/\s+$/, "");
};